package com.arrays;

/**
 * @author 13699
 */
public class RandomBounds {
    static void usage(){
        System.out.println("Usage:");
        System.out.println("\tRandomBounds lower");
        System.out.println("\tRandomBounds upper");
        System.exit(1);
    }

    public static void main(String[] args) {
        if(args.length!=1){
            usage();
        }
        if(args[0].equals("lower")){
            while (Math.random()!=0.0){
                System.out.println("Produced0.0!");
            }
        }else if(args[0].equals("upper")){
            while (Math.random()!=1.0){
                System.out.println("Produced 1.0!");
            }
        }else{

            usage();
        }

    }
}
